import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  list = '/monitor/rule/list',
  save='/monitor/rule/save',
}
/**
 * 列表接口
 * @param params
 */
export const list = (params?) =>
  defHttp.get({url: Api.list, params});
/**
 * 保存
 * @param params
 */
export const save = (params) => {
  return defHttp.post({url: Api.save, params});
}
